package doudizhu;
/***********************************************************************
 * Module:  Game.java
 * Author:  Thinkpad
 * Purpose: Defines the Class Game
 ***********************************************************************/

import java.util.*;

/** @pdOid 33a3fba2-d4aa-4740-b5b7-89750d2b8f44 */
public class Game {
   /** @pdOid 985c5911-9849-49f3-a45c-297c10821277 */
   private Desk desk=new Desk();
   /** @pdOid 464d3e60-87ce-466b-b698-b5e312e57c7d */
   private Player p1;
   /** @pdOid a9a15315-1099-41ed-be25-f353c5e0200e */
   private Player p2;
   /** @pdOid ec39b9e5-6fa8-403a-a8c5-c5daefb2de9c */
   private Player p3;
   /** @pdOid 2b8a0d7a-c56c-4472-94b2-d1fe2abdc30c */
   private Card[] cards;
   
   public Game()
   {
	   p1 = new Player();
	   p2 = new Player();
	   p3= new Player();
	   cards = new Card[54];
	   for (int i =0; i <17; i++)
	   {
		   String txt = "";
		   int    vv =0;
		   
		   if (i ==0)
		   {
			   txt ="A";
			   vv =11;
		   }
		   else if (i ==1)
		   {
			   txt= "2";
			   vv = 12;
		   }
		   else if (i ==10)
		   {
			   txt= "J";
			   vv = i -2;
		   }
		   else if (i ==11)
		   {
			   txt= "Q";
			   vv = i -2;
		   }
		   else if (i ==12)
		   {
			   txt= "K";
			   vv = i -2;
		   }
		   else
		   {
			   txt = (i+1)+"";
			   vv = i -2;
		   }
		   cards[i*4] = new NormalCard(CardColor.Spade,txt,vv);
		   cards[i*4+1] = new NormalCard(CardColor.Heart,txt,vv);
		   cards[i*4+2] = new NormalCard(CardColor.Club,txt,vv);
		   cards[i*4+3] = new NormalCard(CardColor.Diamond,txt,vv);
		   
	   }
	   cards[52] = new Queen();
	   cards[53] = new King();
   }
   public Game(String gamename){
	   
   }
   /** @pdOid 5346d1b8-adb6-4a66-9f37-5edc2da161e0 */
   public Player start() {
      // TODO: implement
      return null;
   }

}